dotConnect for Oracle Documentation
Devart.Common Namespace / DbCommandBuilder Class / GetUpdateCommand Method / GetUpdateCommand(String[],Boolean) Method
The array of string containing list of the field names.
Determines whether dotConnect uses columns metadata to make up parameters' names. If true, the names are composed using colon and name of appropriate column; otherwise the names look like :p1, :p2 etc.

In This Topic
GetUpdateCommand(String[],Boolean) Method
In This Topic
Gets the automatically generated SQL statement required to perform updates for the specified fields when an application calls System.Data.Common.DbDataAdapter.Update(System.Data.DataSet) on the System.Data.IDbDataAdapter.
Syntax
'Declaration
 
Public Overloads Function GetUpdateCommand( _
   ByVal fields() As String, _
   ByVal useColumnsForParameterNames As Boolean _
) As DbCommand
 

Parameters

fields
The array of string containing list of the field names.
useColumnsForParameterNames
Determines whether dotConnect uses columns metadata to make up parameters' names. If true, the names are composed using colon and name of appropriate column; otherwise the names look like :p1, :p2 etc.

Return Value

A DbCommandBase with CommandText containing SQL statement to be executed.
Remarks
This overload of the method allows to restrict list of columns that are included in the generated statement.
See Also